import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:sonora/shared/lib/helper/function/sj_function.dart';

part 'sj_app_popup_info.freezed.dart';

@freezed
class SjAppPopupInfo with _$SjAppPopupInfo {
  const factory SjAppPopupInfo.confirmDialog(
      {@Default('') String message, SjFunc0<void>? onPressed}) = _ConfirmDialog;

  const factory SjAppPopupInfo.errorWithRetryDialog(
      {@Default('') String message,
      SjFunc0<void>? onRetryPressed}) = _ErrorWithRetryDialog;

  const factory SjAppPopupInfo.requiredLoginDialog() = _RequiredLoginDialog;
}
